package com.vates.login.services.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vates.login.dao.GenericDAO;
import com.vates.login.dao.UserDAO;
import com.vates.login.model.User;
import com.vates.login.services.UserService;

@Service("userService")
public class UserServiceImpl extends BaseCrudServicesImpl<User, Long> implements UserService {
	
	/** It DAO should be used in the implementation of this class **/
	@Autowired
	private UserDAO userDao;

	@Override
	public User getUser(String username) {
		return userDao.getUser(username);
	}

	public GenericDAO<User, Long> getEntityDao() {
		return userDao;
	}
	
}
